package com.cloud.rou.im.connection.container.manager;

import com.cloud.rou.im.connection.container.repository.InMemoryUserConnectorRepository;

/**
 * <p></p>
 *
 * @author GaoShuangWen
 */
public class SessionManagerHolder {

    private static SessionManager manager;

    static {
        initialize();
    }

    private static void initialize() {
        manager = SessionManager.newInstance(new InMemoryUserConnectorRepository());
    }

    public static SessionManager getManager() {
        return manager;
    }

    public static void main(String[] args) {
        SessionManager sessionManager = SessionManager.newInstance(new InMemoryUserConnectorRepository());
    }
}
